Method and system for data entry of handwritten symbols

ABSTRACT

A method and system for data entry of handwritten text into a computer program that is not designed to accept handwritten text is provided. In preferred embodiments, the computer program is designed to operate in a windowing environment. A data entry program receives handwritten data, recognizes the data, and sends the recognized data to the computer program. The computer program processes the recognized data as if it had been entered from the keyboard. According to the present invention, the data entry program overlaps the window of the computer program with an invisible window. To the user, it looks as if the computer program is accepting handwritten data directly.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No. 07/716,723, filed Jun. 17, 1991, now abandoned.

TECHNICAL FIELD

This invention is related to a method and computer system of data entry of handwritten characters and, in particular, data entry in a windowing environment.

BACKGROUND OF THE INVENTION

Handwriting recognition systems are being developed to allow users to input handwritten data into a computer. An electronic tablet allows a user to hand write data that the computer can recognize. The user writes data on the electronic tablet with a special pen. As the user moves the pen across the tablet, the tablet displays "ink." The tablet senses the position of the pen as the user writes and sends the position data to the computer. The computer receives this position data and converts it to recognized symbols, such as letters or numbers, in a convenient format, such as ASCII format. The computer then processes the formatted characters.

Some handwriting recognition systems recognize not only characters, letters and punctuation, but also gestures. Gestures are handwritten symbols that are typically used to represent editing commands or to produce non-printing text. For example, a handwritten backslash over a letter may mean delete the letter, a caret in between two letters may mean insert text, or a vertical line with an arrow to the left may mean insert a carriage return. Gestures are used extensively when printed documents are edited. During recognition, these gestures are converted to a convenient format for use by the computer.

These handwriting recognition systems use algorithms to map handwritten data to symbols. Typically, these systems internally store a prototype for each symbol that can be recognized. A prototype is a "picture" of a handwritten symbol that is used to map handwriting to a symbol. A system that recognizes just capital letters may have only 26 prototypes: one for each capital letter. Recognition systems use recognition algorithms to map handwritten data to a prototype. As long as the user writes like the prototypes, the handwritten data is successfully recognized. Conversely, the more dissimilar the handwritten data and the prototype are, the more likely it is that the handwritten data will be misrecognized. Misrecognition is typically due to the differences in user handwriting styles and legibility of the handwriting. For example, the handwritten word "dear" may be misrecognized as the word "clear" depending the way the user writes a "d" and the prototypes for the letters "d," "c," and "l."

Although some computer programs are written to accept handwritten data, most computer programs are designed to receive data typed by a user at a computer keyboard. Such programs are call non-pen programs, that is, the programs are not designed to support handwritten data entry. It is often desirable to allow users the option to input data through a keyboard or by handwriting. Many people are not proficient at typing. They shun using computers because it is burdensome to enter data. These people, however, would use a computer if the computer program would accept handwritten data entry. Also, there are many situations where the use of a keyboard is impractical and where the use of handwritten data entry would be practical.

Many of the non-pen application programs are written for a windowing environment. One such windowing environment is Windows by Microsoft Corporation of Redmond, Washington. Several operating systems also have integrated windowing environments. In a windowing environment, each application program is assigned a window. The windows for several programs can be shown on the computer display simultaneously. Typically, the windowing environment supports multitasking, that is, multiple programming may be operating concurrently. The windowing system controls the positioning and size of the windows on the screen. Typically, the user has considerable flexibility in arranging the windows. In most windowing systems, the windows can overlap. The window that logically overlaps obscures the overlapped window.

It would require extensive redesigning and reprogramming to adapt non-pen programs to accept handwritten data. In some situations, it may not be economically feasible to adapt a non-pen program. The costs of the adaptations may not be offset by increased revenue resulting from the program accepting handwritten data. It would be desirable if these non-pen application programs could receive handwritten data without the need to adapt the non-pen application program. It would be desirable if the non-pen program could also receive handwritten gestures.

SUMMARY OF THE INVENTION

The methods of the present invention provide for the data entry of handwritten data into a computer program that is not designed to accept handwritten data. According to the methods, a non-pen application program operates in a windowing environment. A handwriting data entry program detects when a user wants to input handwritten data. The data entry program creates an "invisible" window, which preferably overlaps the application window. An "invisible" window is a window that when created and displayed has no visual effect on the display. The windowing environment internally treats the creating and displaying of an invisible window like a visible window. However, when the user writes with the pen, the data entry program inputs the handwritten data, converts the data to recognized symbols, and erases the handwritten data from the display. The data entry program then sends the recognized symbols to the application program as virtual keyboard or mouse events. The application program then processes the virtual keyboard or mouse events as if the events were enter from the keyboard or mouse.

In preferred embodiments, the methods automatically detect when the user wants to input handwritten data to a non-pen application. The data entry program monitors all pen down events. The user starts entering handwritten data by writing over a data entry area of the application window. When the data entry program detects a pen down within a data entry area of the application window, the data entry program starts the collection and recognition process. When the user stops writing for a period of time, the data entry program assumes that the user has finished the handwritten data entry.

In a preferred embodiment, the data entry program inputs gestures from the user. The data entry program converts a recognized gesture to keyboard or mouse events or other standard messages that will effect the function of the gesture. The data entry program then sends these events to the application program as virtual events. When the application program receives the virtual events, it processes them as if they came from the keyboard or mouse.

It is an object of the present invention to provide a method and system for allowing non-pen application programs to receive handwritten data entry.

It is another object of the present invention to provide a method and system for using an invisible window to input handwritten data and send the recognized symbols to an application program.

It is another object of the present invention to provide a method and system for detecting when a non-pen application program is in a data entry mode.

It is another object of the present invention to provide a method and system for allowing a non-pen application program to process gesture data entry.

These and other objects will become apparent as the invention is more fully described below.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a computer system configured to implement the methods of this invention.

FIG. 2A shows a typical display of the word processing package Microsoft Word for Windows.

FIG. 2B shows the display surface after the user has handwritten text.

FIG. 2C shows the display surface after the handwritten text is recognized and received by the word processor.

FIG. 3 shows components of a preferred embodiment of the present invention.

FIG. 4 is a flow diagram of the processing in a preferred embodiment of the present invention.

FIG. 5 is a partial flow diagram of the Pen Palette initialization routine.

FIG. 6 is a flow diagram of the function DWMouseHook.

FIG. 7 is a flow diagram of the window procedure for the Pen Palette application.

FIG. 8 is a flow diagram of the ProcessWriting function.

FIG. 9 is a flow diagram of the window procedure for the invisible window.

DETAILED DESCRIPTION OF THE INVENTION

FIG. 1 shows a computer system configured to implement the methods of the present invention. The computer system comprises a computer 110, a pen 111, a digitizing tablet 112, and a connecting cable 113. The tablet 112 comprises input grid 121 and the display surface 122. The input grid 121 detects contact of the pen 111 with the tablet 112. If contact is detected, then the tablet 112 sends the coordinates of the contact point to the computer 110 through the connecting cable 113. The tablet 112 periodically samples the input grid 121. Upon receiving the coordinates, the computer 110 "inks" the contact point, that is, the computer 110 sends data to the tablet 112 to turn on a point on the display surface 122 that corresponds to the contact point. The display surface 122 is a standard bitmap display. To a user it looks as if the pen writes the point onto the tablet 112 where the pen 111 made contact. With an appropriate sampling rate, the computer 110 inks multiple contact points as the user moves the pen 111 across the tablet 112. Thus, the computer system allows the user to write data onto the tablet 112. Other computer system configurations are acceptable to implement the methods of the present invention. For example, the entire system can be incorporated in a tablet shaped device. The tablet surface is the input grid and display surface. The tablet shaped device contains the logical equivalent of computer 110 without the display, keyboard, or disk drives.

The methods of the present invention allow the user to input data from a tablet into an application program that is not designed to receive handwritten data (a non-pen application). Although the methods are described as implemented with the Windows system by Microsoft, one skilled in the art would recognize that the methods can be implemented on other windowing systems and some methods can be implemented on non-windowing systems. FIGS. 2A through 2C show a typical user interface employing the methods of the present invention. FIG. 2A shows a typical display 200 of the word processing package Microsoft Word for Windows. Display 200 is displayed on the display surface 122. A user of Word typically enters text into data entry window 201 through a keyboard. Text 202 comprises sample text data. Insertion pointer 203 indicates the position at which newly entered text will be inserted into the word processing document. The cursor 207 is an I-beam shape. FIG. 2B shows the display surface 122 after the user has handwritten the text "The End" 204, which is to be inserted into the document. With the pen 111, the user writes the text "The End" 204 onto the tablet 112. When the user completes writing the text, the text is inserted as shown in FIG. 2C. A recognizer converts the handwritten text 204 to the ASCII format. The recognized text is then sent to the word processor for insertion at the insertion pointer 203. The insertion pointer is repositioned at the end of the newly entered text "The End" 205. The handwritten text 204 is removed from the display 200 before the text is sent to the word processor.

In a preferred embodiment of the present invention, an "invisible" window is used to capture handwritten data. The handwritten data is recognized, and the recognized data is sent to a non-pen application. An invisible window is a window with no frame, title bar, etc. When an invisible window is displayed, the data in the overlapped windows is not overwritten. Rather, the overlapped windows show through the invisible window. Thus, it is not possible to visually detect an invisible window until data is sent to the invisible window. For example, in FIG. 2A once a pen down (contact with the input grid) is detected the word processing window is overlapped by an invisible window that covers the entire word processing window. FIG. 2B shows the effect of handwritten data sent to the invisible window. The handwritten data is the only indication that an invisible window exists. To the user, it seems as though the word processing window is accepting the handwritten data directly. However, the word processor is a non-pen application. The handwritten data is actually sent to the invisible window, which is created by a handwriting data entry program.

In a preferred embodiment, the start of handwriting is detected by the pen contacting the input grid (pen down). The end of handwriting is detected when the pen is not in contact with the input grid (pen up) for a period of time, which may be predetermined or may vary depending on the pace of user handwriting. Alternately, the start and stop of handwriting can be detected by selection of a menu item in a visible window of the data entry program.

FIG. 3 shows components of a preferred embodiment of the present invention. Windows 301 includes a recognition context (RC) manager 302. The RC manager 302 comprises the functionality of Windows 301 that supports handwritten data entry. The RC manager 302 controls the inputting of the raw handwritten data from the input grid driver 307 and the inking of the display surface through the display surface driver 306. The recognizer 303, which is a function of the RC manager 302, receives raw handwritten data from the RC manager, recognizes the raw data as symbols, and returns the recognized symbols. The methods of the present invention are not dependent on any specific recognition technique. Rather, the methods of the present invention are independent of the recognition technique. The mouse driver 304 and the keyboard driver 305 are standard device drivers. The display surface driver 306 receives data from the RC manager 302 and displays the data on the tablet. The input grid driver 307 receives the coordinate data from the input grid and sends the data to the RC manager 302. The mouse hook 308 receives every mouse message that Windows 301 generates. The facility to hook mouse events is a standard feature of Windows. The mouse hook 308 detects when the user wants to enter handwritten data into a non-pen application 310. This detection enables the automatic handwriting mode. In a preferred embodiment, Windows 301 generates a mouse left button down message when a pen down occurs. This allows Windows 301 and application programs to treat pen down like a mouse event. Windows 301 can determine whether a mouse event was generated as a result of a mouse or a pen. Pen Palette 309 is the application that controls the entry of the handwritten data and sending of the recognized symbols to application 310. In operation, the mouse hook 308 sends a message to Pen Palette 309 when it detects that the user wants to input handwritten data (enter automatic writing mode). Pen Palette 309 receives the handwritten data, converts it to recognized symbols, and then sends the recognized symbols to Windows 301 as virtual keyboard or mouse events. A virtual event is not generated by the physical device, but rather is generated by a program and sent to Windows 301 to be treated as if the physical event occurred. For example, a virtual keyboard event occurs when a letter is recognized as part of the handwritten data and Pen Palette 309 sends the letter to Windows 301 to be treated as if it were entered from the keyboard. Windows can determine whether an event is virtual or physical.

FIG. 4 is a flow diagram of the processing in a preferred embodiment of the present invention. The process begins when the mouse hook receives a WM₋₋ LBUTTONDOWN message from Windows. In block 401, the mouse hook enables the automatic handwriting mode if the message is generated as a result of a pen event and if the cursor is an I-beam shape. In block 402, if the automatic writing mode is enabled, then the mouse hook sends a WM₋₋ INVOKEVKB message to the Pen Palette window and sends an indication to Windows not to process the left button down mouse message. If the automatic writing mode is not enabled, then the mouse hook sends an indication to Windows to process the message. The WM₋₋ INVOKEVKB message indicates that the Pen Palette window is to start input of handwritten data through an invisible window and to send the recognized symbols to the application. In block 403, when the WM₋₋ INVOKEVKB is received, the Pen Palette window determines the size and position characteristics of the application window. The invisible window is preferably slightly larger than and overlaps the application window. However, it may also fill the entire display surface or only a portion of the application window. The processing in block 414 corresponds to the function ProcessWriting (explained below) that is called by Pen Palette. In block 404, the Pen Palette window creates the invisible window. The creation process saves the bitmap for the portion of the display that the invisible window overlaps. This creation process initializes data internally within Windows. Because the window is invisible, the display is not affected. The saved bitmap is used to restore the display when the invisible window is closed. In block 405, the Pen Palette window invokes the function Recognize. The function Recognize inputs the handwritten data, sends the corresponding ink to the display surface, and converts the handwritten data into recognized symbols. The function Recognize detects when the user stops writing. When the function Recognize completes, it sends an WM₋₋ RCRESULT message to the invisible window. The WM₋₋ RCRESULT message indicates that the recognition is complete. In block 406, the invisible window saves the recognized symbols and returns control to the Pen Palette window. In block 407, the Pen Palette window sends a WM₋₋ CLOSE message to the invisible window. In block 408, the invisible window processes the WM₋₋ CLOSE message. When the invisible window is closed, the overlapped bitmap that was saved when the invisible window was created is restored. This restoration effectively erases the handwritten data on the display. Control then passes back to the Pen Palette window. In block 409, the function ProcessWriting, which is invoked by the Pen Palette window, sends a WM₋₋ RCRESULT message to the Pen Palette window. This message indicates to the Pen Palette window that recognition is complete and the recognized symbols are available. In block 410, the Pen Palette window converts the recognized symbols to virtual events. It converts gestures to their mouse or keyboard equivalent virtual events or standard system messages and characters to their keyboard equivalent virtual events. Block 410 then sends these virtual events to Windows. Block 410 also returns control to the WM₋₋ INVOKEVKB invocation of the Pen Palette window in block 411 to complete that invocation. In block 412, Windows receives virtual events and sends messages corresponding to the events to the application window. The messages include the keyboard event and mouse event messages. In block 413, the application window receives and processes the messages as if the events were actually received from the keyboard or mouse. In the example of FIGS. 2A through 2C, the word processing program inserts the text characters corresponding to the handwritten data into the document.

FIGS. 5 through 9 are flow charts showing a preferred embodiment of the present invention. Appendix A contains the "Microsoft Windows Graphical Environment for Pen Computing SDK--Guide to Programming" manual. This manual explains in detail the application programming interface for the Windows pen-based system.

FIG. 5 is a partial flow diagram of the Pen Palette initialization routine. This initialization routine installs the mouse hook, replaces the I-beam bitmap with an automatic writing bitmap, and registers the class for the invisible window. The Pen Palette application installs a mouse hook to trap messages corresponding to left button down mouse events. When a mouse hook is installed to trap mouse messages, Windows invokes the mouse hook to process each mouse message. When the mouse hook returns to Windows, it indicates whether Windows should proceed with normal processing of the mouse message or not process the mouse message. Referring to FIG. 5, in block 501, the routine installs the function DWMouseHook as a mouse hook. In block 502, the routine replaces the bitmap for the I-beam cursor with a bitmap that indicates automatic writing is enabled. In a preferred embodiment, the routine accesses the handle of the I-beam cursor. The routine makes a copy of the I-beam bitmap and then copies the automatic writing bitmap over the original I-beam bitmap. Whenever the application intends to display the I-beam cursor, the automatic writing cursor is displayed instead to indicate that handwritten data can be received. In block 503, the class for the invisible window is registered with Windows. The class specifies a null background brush and the save bits flag. The null background brush indicates that the display area which the invisible window overlaps is not erased. The save bits flag indicates that the bitmap for the display area which the invisible window overlaps is saved so that the bitmap can be restored when the invisible window is closed.

FIG. 6 is a flow diagram of the function DWMouseHook. Windows sends all mouse messages to the function DWMouseHook. The function DWMouseHook traps out left button down messages generated by a pen when the cursor indicates the I-beam. In a preferred embodiment the bitmap for the I-beam cursor is replaced by the automatic writing bitmap. When a trap occurs, the function posts a message to the Pen Palette window indicating that it should start the automatic writing recognition. A left button down occurs when the pen contacts the tablet. The function DWMouseHook traps only left button down messages generated by the pen. The function is called with a mouse message and the handle of the application window as parameters. The function returns a zero value when it does not process the message, which indicates that Windows should process the message, and a non-zero value when it does process the messages. Referring to FIG. 6, in block 601, if the message is WM₋₋ LBUTTONDOWN and it corresponds to a pen event, then the function continues at block 602, else the function returns with a zero value. In block 602, if the cursor indicates the I-beam, then a pen down has been detected (left mouse button message generated) and the cursor is over a data entry window and the function continues at block 603, else the function returns with a zero value. The detection of the I-beam allows the methods of the present invention to automatically detect that a user is starting to enter handwritten data. In operation, when Windows detects a mouse movement it sends mouse movement messages to the application. The mouse hook does not trap mouse movement messages. When the application detects that the mouse has moved over a text data entry field, the application requests Windows to set the cursor to the I-beam by passing the handle to the I-beam bitmap. Windows then displays the bitmap indicated by the handle. The use of the I-beam shape to indicate that the application is ready to receive data is standard programming practice in Windows. In a preferred embodiment, the methods of the present invention detect that a user is starting to enter handwritten data as follows. Windows detects a pen down and sends a mouse movement message to the application. If the pen down occurred over a text data entry field, the application responds to the mouse movement message by setting the cursor to indicate the I-beam. Windows then sends the left button down mouse message, which the mouse hook traps. The mouse hook ensures that the message was generated as a result of a pen event and checks the cursor. If the cursor handle indicates the I-beam, then the application is ready to receive data and entry of the handwritten data can proceed. Although the I-beam cursor is used to indicate data entry, some applications may use a different cursor display convention. In a preferred embodiment, the mouse hook can maintain a list of cursor handles that indicate data entry. Detection of the display of cursors corresponding to the handles in the list can be used to enable automatic handwriting. In a preferred embodiment, the list of handles can be mapped to the application programs that use a specific cursor to indicate data entry. The list can be updated dynamically to accommodate new applications that do not follow the I-beam convention. In block 603, the function posts a WM₋₋ INVOKEVKB message to the Pen Palette window. The handle of the application window is sent with the message. The function then returns to Windows with a one value.

FIG. 7 is a flow diagram of the window procedure for the Pen Palette application. This procedure processes the WM₋₋ INVOKEVKB message that is posted by function DWMouseHook and the WM₋₋ RCRESULT message that is sent by the recognizer. With the WM₋₋ INVOKEVKB message, this procedure receives as parameters the handle of the Pen Palette window and the handle of the application window. In block 701, if the message is not equal to WM₋₋ INVOKEVKB, then the procedure continues at block 710, else the procedure continues at block 702. In block 702, the procedure calculates the size of the invisible window. The size of the invisible window is preferably slightly larger than the application window. In block 703, the procedure initializes parameters for the recognition process. The recognition parameters typically include bounding rectangle for inking, handle of window to send results, ink width, list of allowable symbols, etc. In block 704, the procedure invokes function ProcessWriting (described below). The procedure then returns.

In block 710, if the message is not equal to WM₋₋ RCRESULT, then the procedure processes other messages as indicated by the ellipsis, else the procedure continues at block 711. In block 711, the procedure converts any gestures in the recognized symbols to equivalent events or messages. The methods of the present invention convert gestures into corresponding virtual events or messages. For example, the caret gesture, which means insert, is converted to a mouse movement event indicating the point of the caret and a left mouse button down event. When an application, such as a word processor, receives these events it moves the insertion pointer to the caret and is ready to insert data entry. In another example, a copy selection gesture, which means copy the selection to a clipboard, is converted to keyboard events, such as control-insert, or a standard system message, such as WM₋₋ COPY in Windows. One skilled in the art will recognize that other gestures can be similarly converted to virtual events for processing by non-pen applications. In block 712, the procedure posts virtual mouse and keyboard events corresponding to the recognized symbols to Windows and returns.

FIG. 8 is a flow diagram of the ProcessWriting function. The function ProcessWriting controls inputting raw handwritten data, inking the display surface, and converting the handwritten data to recognized symbols. The function ProcessWriting is called with two parameters: the handle of the Pen Palette window and the parameters for the recognition process. In a preferred embodiment, function ProcessWriting can be called by a pen-aware application to facilitate pen data entry through the use of an invisible window. In block 801, the function creates the invisible window. The invisible window is created as the topmost window and with no frame, title bar, or scroll bars to maintain invisibility. In block 802, the function sets the invisible window position on the display surface. In block 803, the function updates the invisible window. Although there is no visible effect of updating the invisible window, Windows initializes internal data structures. In block 804, the function invokes the function Recognize to input data using the invisible window and recognize the data. The function Recognize sends the recognized symbols along with the WM₋₋ RCRESULT message to the invisible window. In block 805, the function sends the WM₋₋ CLOSE message to the invisible window. When the invisible window is closed, bitmaps for the display area that the invisible window overlapped are restored. In block 806, the function sends the WM₋₋ RCRESULT message to the Pen Palette window. The function then returns.

FIG. 9 is a flow diagram of the window procedure for the invisible window. The procedure processes two messages: WM₋₋ MOUSEACTIVATE and WM₋₋ RCRESULT. This procedure ensures that the invisible window is not given the focus and saves the recognized symbols. The window that has the focus is the window that receives the keyboard entries. In block 901, if the WM₋₋ MOUSEACTIVATE message is received, then the procedure returns with MA₋₋ NOACTIVATE, else the procedure continues at block 902. The WM₋₋ MOUSEACTIVATE message indicates that the invisible window is to be made the focus. Under normal processing, the title bar of the application losing the focus would be changed to indicate that it no longer has the focus. However, this procedure suppresses the normal processing by returning the MA₋₋ NOACTIVATE message. The net effect is not only that the window is invisible, but also that the application window does not change because the focus does not change. In block 902, if the WM₋₋ RCRESULT message is received, then the recognized symbols are to be saved and the procedure continues at block 903, else the procedure continues with the standard default message processing as indicated by the ellipsis. In block 903, the procedure saves the recognized symbols so that they can be retrieved by the Pen Palette window and the procedure returns.

Although the present invention has been described in terms of preferred embodiments, it is not intended that the invention be limited to these embodiments. Modifications within the spirit of the invention will be apparent to those skilled in the art. The scope of the present invention is defined by the claims that follow. 

We claim:
 1. A system for inputting handwritten data into a target computer program, the target computer program designed to receive data from a computer keyboard and not designed to accept handwritten data, the target computer program having a window for displaying data on a display device, the window having a data entry portion, the handwritten data comprising symbols, each symbol having a corresponding symbol code of a coding scheme, the system comprising:a computer for operating a plurality of computer programs; an electronic tablet connected to the computer, wherein the electronic tablet inputs raw handwritten data, sends the raw handwritten data to the computer, displays ink corresponding to the raw handwritten data, receives data from the computer, and displays the data received from the computer; a windowing environment computer program operating on the computer, the windowing environment computer program for controlling windows associated with the computer programs operating on the computer, wherein the windowing environment computer program controls the displaying of the window of the target computer program on the electronic tablet; a hook computer program for detecting the start of writing on the electronic tablet wherein the writing is over a data entry portion of the window of the target computer program; a recognition system that, in response to a request by a requesting computer program to return symbol codes, inputs the raw handwritten data from the electronic tablet, controls the inking of the electronic tablet, identifies the symbol codes corresponding to the symbols of the raw handwritten data and returns the identified symbol codes to the requesting computer program; and a data entry computer program for displaying an invisible window when the hook computer program detects the start of writing, for requesting the recognition system to return symbol codes, for converting the symbol codes into virtual keyboard events without input from the computer keyboard, and for sending the virtual keyboard events to the target computer program, whereby the target computer program processes the virtual keyboard events as if the corresponding symbols were input from the computer keyboard without modification of the target computer program.
 2. The system of claim 1 wherein the data entry computer program sends the returned symbol codes to the windowing environment computer program as virtual events and wherein the windowing environment computer program sends the returned symbol codes to the target computer program as keyboard events.
 3. A method of sending data to a non-pen computer program designed to accept data from a keyboard, the method comprising the steps of:inputting a handwritten gesture from a user of the computer program; recognizing the handwritten gesture as a gesture symbol; converting the gesture symbol to equivalent keyboard events; and sending the equivalent keyboard events to the computer program for processing, wherein the computer program can process the equivalent keyboard events without the need for modifying the computer program.
 4. A data processing method for inputting data into a non-pen computer program, the non-pen computer program designed to process data input as events, the method comprising the steps of:inputting a handwritten gesture from a user of the non-pen computer program, the gesture having a function; recognizing the gesture as a gesture symbol; converting the gesture symbol to an equivalent event, the equivalent event representing the function of the gesture symbol; and processing the equivalent event whereby the non-pen computer program effects the function of the handwritten gesture.
 5. The method of claim 4 wherein the steps of inputting, recognizing, and converting are performed by a data entry computer program and including the step of sending the equivalent events from the data entry computer program to the computer program.
 6. The method of claim 5 wherein the events include keyboard events.
 7. The method of claim 5 wherein the events include mouse events.
 8. The method of claim 5 wherein the events include messages.
 9. The method of claim 4 wherein the computer program has an associated window and executes on a computer that is operatively connected to an electronic tablet, the electronic tablet having an associated pen, and wherein the step of inputting the handwritten gesture includes the step of detecting that the associated pen has contacted the electronic tablet within an area corresponding to the associated window whereby the detection indicates the start of the input of the handwritten gesture.
 10. A method for inputting handwritten data into a non-pen computer program, the computer program designed to receive input from a computer keyboard, the handwritten data comprising symbols, each symbol having a corresponding symbol code of a coding scheme, the method comprising the steps of:detecting an indication that handwritten data is to be input into the computer program; creating an invisible window to accept the handwritten data; inputting the handwritten data through the invisible window in response to detecting the indication; identifying the symbol codes corresponding to symbols of the handwritten data; and sending the identified symbol codes to the computer program as virtual keyboard events without input from the computer keyboard as symbols entered into the computer program through the computer keyboard, wherein the computer program processes the identified symbol codes without the need for modifying the computer program to process handwritten data.
 11. The method of claim 10 wherein the computer program is designed to operate in a windowing environment.
 12. The method of claim 10 wherein the computer program has an associated window and executes on a computer that is operatively connected to an electronic tablet, the electronic tablet having an associated pen, and wherein the step of detecting an indication includes detecting that the associated pen has contacted the electronic tablet within an area corresponding to the associated window.
 13. The method of claim 10 including the steps of:converting the identified symbol codes to equivalent mouse or keyboard events or messages.
 14. The method of claim 10 wherein the steps of detecting, creating, inputting, and identifying are performed by a second computer program and including the step of sending the identified symbol codes from the second computer program to the computer program.
 15. A method of inputting handwritten data into a non-pen computer program, the computer program executing on a computer with an electronic tablet and pen, the non-pen computer program having a first window with data entry areas, the first window being displayed on the electronic tablet, the handwritten data comprising symbols, each symbol having a corresponding symbol code of a coding scheme, the method comprising the steps of:detecting when the pen contacts the electronic tablet within an area corresponding to a data entry area of the first window; creating a second window to input handwritten data in response to the detection of pen contact; inputting the handwritten data through the second window; identifying the symbol codes corresponding to the symbols of the handwritten data; and sending the identified symbol codes to the non-pen computer program.
 16. A computer system for inputting handwritten data into a non-pen computer program comprising:a computer with a computer memory that stores the non-pen computer program; an electronic tablet connected to the computer, the electronic tablet for receiving handwritten data, the handwritten data comprising symbols, each symbol having a corresponding symbol code of a coding scheme; and a handwritten data entry computer program stored in the computer memory for receiving handwritten data from the electronic tablet, for identifying the symbol codes corresponding to the symbols of the handwritten data, and for sending the identified symbol codes to the non-pen computer program as non-handwritten data, whereby the non-pen computer program processes the identified symbol codes as if the identified symbol codes were received by the computer system as non-handwritten data without the need for modifying the computer program.
 17. The computer system of claim 16 including a display device connected to the computer for displaying output of the computer programs, wherein the target computer program displays output on a display device and the handwritten data entry computer program creates a window that logically overlaps the output of the target computer program, the window for receiving handwritten data to effect the appearance to a user of the computer system that the handwritten data is input directly into the target computer program.
 18. A method in a computer system of inputting data through an alternate input device into a target computer program, the target computer program designed to input data from a primary input device and not designed to input data through the alternate input device, the method comprising the steps of:executing a data entry computer program, wherein the data entry computer program receives data through the electronic tablet, converts the data to virtual input events of the primary input device, and sends the virtual input events to the target computer program; and, executing the target computer program, wherein the target computer program receives the virtual input events sent from the data entry computer program and processes the virtual input events as if the virtual input events were input directly to the target computer program by the primary input device without the need for modifying the target computer program to accommodate data from the alternate input device.
 19. The method of claim 18 wherein the virtual input events correspond to keyboard events.
 20. The method of claim 18 wherein the virtual input events correspond to mouse events.
 21. The method of claim 18 wherein the computer system includes a display device for displaying output of the target computer program, wherein the target computer program displays output on the display device and the data entry computer program creates a window that logically overlaps the output of the target computer program, the window for receiving data input through the alternate input device which includes an electronic tablet to effect the appearance to a user of the computer system that the data input through the electronic tablet is input directly into the target computer program.
 22. The method of claim 21 wherein the data input through the electronic tablet is handwritten data.
 23. The method of claim 22 wherein the data input through the electronic tablet corresponds to mouse input.
 24. The system of claim 1 wherein the recognition system identifies symbol codes as codes of the American Standard Code for Information Interchange. 